package com.study.teacher;

public class CPUFactory {
	public static CPU createCPU(int kind){
		CPU obj=null;
		if(kind==0){
			obj = new AMD();
		}else{
			obj = new IntelCPU();
		}
		return obj;
	}
}
